package kr.ac.kongju.gedl.admin.vo;

import java.io.Serializable;


/**
 * 운영/관리자 정보
 * @author GorillaFunch
 *
 */
public class AdminInfoVO  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4872960026878862960L;
	public String adminId = "";
	public String password = "";
	public String name = "";
	public String department = "";
	
	public AdminInfoVO(){
	}

	public AdminInfoVO(String adminId) {
		super();
		this.adminId = adminId;
	}

	public AdminInfoVO(String adminId, String password, String name,
			String department) {
		super();
		this.adminId = adminId;
		this.password = password;
		this.name = name;
		this.department = department;
	}

	public String getAdminId() {
		return adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((adminId == null) ? 0 : adminId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AdminInfoVO other = (AdminInfoVO) obj;
		if (adminId == null) {
			if (other.adminId != null)
				return false;
		} else if (!adminId.equals(other.adminId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("AdminVO [adminId=");
		builder.append(adminId);
		builder.append(", name=");
		builder.append(name);
		builder.append(", department=");
		builder.append(department);
		builder.append("]");
		return builder.toString();
	}
}